package com.zhaiweijia.entity;

import java.io.Serializable;
import java.util.Date;

public class Comments implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -113393056348839870L;
	private Integer id         ;//
	private Integer userId    ;//用户id
	private Integer articleId ;//文章id
	private String content    ;//评论内容
	private Date created    ;//评论时间
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getArticleId() {
		return articleId;
	}
	public void setArticleId(Integer articleId) {
		this.articleId = articleId;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Date getCreated() {
		return created;
	}
	public void setCreated(Date created) {
		this.created = created;
	}
	public Comments(Integer id, Integer userId, Integer articleId, String content, Date created) {
		super();
		this.id = id;
		this.userId = userId;
		this.articleId = articleId;
		this.content = content;
		this.created = created;
	}
	public Comments() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Comments [id=" + id + ", userId=" + userId + ", articleId=" + articleId + ", content=" + content
				+ ", created=" + created + "]";
	}
	
	
}
